<?php
	/**
	*
	*
	*/
	class Grade {
	
		var $code_grade;
		var $prefix_grade;
		var $libelle;
		
		
		
		/**
		* Retourne la liste des grades.	
		*
		*
		*/
		function getAllGrade(){
			$db = new Db();
			$db->connect();
			
				$req = $db->query("SELECT * FROM grade order by ordre");
                $res = $db->fetchArray();
			
			return($res);	
			$db->disconnect();
		}
 
     function getGrade(){
			$db = new Db();
			$db->connect();
			
				$req = $db->query("SELECT * FROM grade WHERE code_grade='1' or code_grade='2' or code_grade='3' or code_grade='5' order by ordre");
                $res = $db->fetchArray();
			
			return($res);	
			$db->disconnect();
		}
		

	   

	
	
	}

?>